                <h2>Кабинет пользователя</h2>
                <div class="hold">
                    <div class="box-kp">
                        <ul>
                            <li><strong>Фамилия:</strong> <?=$this->user->surname?></li>
                            <li><strong>Имя:</strong> <?=$this->user->name?></li>
                            <li><strong>Отчество:</strong> <?=$this->user->fathername?></li>
                            <li><strong>Год рождения:</strong> <?=$this->user->year?></li>
                            <li><strong>Размер:</strong> <?=$this->user->size?></li>
                        </ul>
                        
                    </div>
                    <div class="box-kp">
                        <ul>
                            <li><strong>Телефон:</strong> <?=$this->user->phone?></li>
                            <li><strong>E-mail: </strong><a href="mailto:<?=$this->user->email?>"><?=$this->user->email?></a></li>
                        </ul>
                    </div>
                </div>
                <?php if($this->form):?>
                <p></p><span class="link" id="edit"><a href="#">Редактировать данные</a></span></p>
                <div class="reg">
                   <form action="<?=$this->form->getAction()?>" method="<?=$this->form->getMethod()?>">
                        <fieldset>
                            <div class="row">
                                <label class="label-l" for="i2">Пароль:</label>
                                <span class="i-long"><?=$this->form->getElement('password')?></span>
                                <?=$this->errors($this->form->getElement('password'))?>
                            </div>
                            <div class="row">
                                <label class="label-l" for="i1">Фамилия:</label>
                                <span class="i-long"><?=$this->form->getElement('surname')?></span>
                                <?=$this->errors($this->form->getElement('surname'))?>
                            </div>
                            <div class="row">
                                <label class="label-l" for="i2">Имя:</label>
                                <span class="i-long"><?=$this->form->getElement('name')?></span>
                                <?=$this->errors($this->form->getElement('name'))?>
                            </div>
                            <div class="row">
                                <label class="label-l" for="i3">Отчество:</label>
                                <span class="i-long"><?=$this->form->getElement('fathername')?></span>
                                <?=$this->errors($this->form->getElement('fathername'))?>
                            </div>
                            <div class="row">
                                <label class="label-l" for="i4">Год рождения:</label>
                                <span class="i-short1"><?=$this->form->getElement('year')?></span>
                                <?=$this->errors($this->form->getElement('year'))?>
                                <label for="i5">Размер:</label>
                                <span class="i-short2"><?=$this->form->getElement('size')?></span>
                                <?=$this->errors($this->form->getElement('size'))?>
                            </div>
                            <div class="row">
                                <label class="label-l" for="i6">Пол:</label>
                                <?=$this->form->getElement('gender')?>
                            </div>
                            <div class="row">
                                <label class="label-l" for="i7">Телефон:</label>
                                <span class="i-long"><?=$this->form->getElement('phone')?></span>
                                <?=$this->errors($this->form->getElement('phone'))?>
                            </div>
                            <div class="row">
                                <?=$this->form->getElement('submit')?>
                            </div>
                        </fieldset>
                    </form>
                    </div>
                     <script type="text/javascript">
                     $('.reg').hide();
                     $('#edit').click(function(){
                             $('.reg').toggle();
                             return false;
                         });
                    </script>
                <?php endif;?>
